package com.buba.commodity.service.impl;

import com.buba.commodity.dao.SizeMapper;
import com.buba.commodity.pojo.ProductSize;
import com.buba.commodity.service.SizeService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DubboService
public class SizeServiceImpl implements SizeService {
    private SizeMapper sizeMapper;

    @Override
    public List<ProductSize> selSize() {
        return sizeMapper.selSize();
    }

    @Autowired
    public void setSizeMapper(SizeMapper sizeMapper) {
        this.sizeMapper = sizeMapper;
    }
}
